home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / vg-2.03 / video / ibm8514.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  1.9 KB  |  86 lines

  1. /*
  2.  * Copyright (C) 1992 by Michael Davidson.
  3.  * All rights reserved.
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software
  6.  * and its documentation for any purpose and without fee is hereby
  7.  * granted, provided that the above copyright notice appear in all
  8.  * copies and that both that copyright notice and this permission
  9.  * notice appear in supporting documentation.
  10.  *
  11.  * This software is provided "as is" without express or implied warranty.
  12.  */
  13.  
  14. #ifndef    IBM8514_H
  15. #define    IBM8514_H
  16.  
  17. /*
  18.  * ibm8514.h    - register definitions for IBM 8514 and compatibles
  19.  */
  20.  
  21. /*
  22.  * 8514 registers
  23.  */
  24. #define    DAC_MASK    0x02ea
  25. #define    DAC_R_INDEX    0x02eb
  26. #define    DAC_W_INDEX    0x02ec
  27. #define    DAC_DATA    0x02ed
  28.  
  29. #define    DISP_STAT    0x02e8
  30. #define    H_TOTAL        0x02e8
  31. #define    H_DISP        0x06e8
  32. #define    H_SYNC_STRT    0x0ae8
  33. #define    H_SYNC_WID    0x0ee8
  34. #define    V_TOTAL        0x12e8
  35. #define    V_DISP        0x16e8
  36. #define    V_SYNC_STRT    0x1ae8
  37. #define    V_SYNV_WID    0x1ee8
  38. #define    DISP_CNTL    0x22e8
  39.  
  40. #define    ADVFUNC_CNTL    0x4ae8
  41. #define    SUBSYS_STAT    0x42e8
  42. #define    SUBSYS_CNTL    0x42e8
  43. #define    ROM_PAGE_SEL    0x46e8
  44.  
  45. #define    CUR_Y        0x82e8
  46. #define    CUR_X        0x86e8
  47. #define    DESTY_AXSTP    0x8ae8
  48. #define    DESTX_DIASTP    0x8ee8
  49. #define    ERR_TERM    0x92e8
  50. #define    MAJ_AXIS_PCNT    0x96e8
  51. #define    GP_STAT        0x9ae8
  52. #define    CMD        0x9ae8
  53. #define    SHORT_STROKE    0x9ee8
  54. #define    BKGD_COLOR    0xa2e8
  55. #define    FRGD_COLOR    0xa6e8
  56. #define    WRT_MASK    0xaae8
  57. #define    RD_MASK        0xaee8
  58. #define    COLOR_CMP    0xb2e8
  59. #define    BKGD_MIX    0xb6e8
  60. #define    FRGD_MIX    0xbae8
  61.  
  62. #define    MULTIFUNC_CNTL    0xbee8
  63. #define    MIN_AXIS_PCNT    0x0000
  64. #define    SCISSORS_T    0x1000
  65. #define    SCISSORS_L    0x2000
  66. #define    SCISSORS_B    0x3000
  67. #define    SCISSORS_R    0x4000
  68. #define    MEM_CNTL    0x5000
  69. #define    PATTTERN_L    0x8000
  70. #define    PATTTERN_R    0x9000
  71. #define    PIX_CNTL    0xa000
  72.  
  73. #define    PIX_TRANS    0xe2e8
  74.  
  75. /*
  76.  * wait for command queue to clear
  77.  */
  78.  
  79. #define WAIT_QUEUE(n) \
  80. { \
  81.     register int mask; \
  82.     mask = 0x100 >> (n); \
  83.     while (mask & inw(GP_STAT)); \
  84. }
  85. #endif    /* IBM8514_H */
  86.